f = open('test/demo1.txt',mode='r',encoding='utf8')

#
# content = f.readline()
# print(content)  #读取一行的数据

while True:
    content = f.readline()   #通过循环将一行读取完
    if not content:
        break
    print(content)
